package com.pmenergy.view;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import com.pmenergy.control.ItemHome;
import com.pmenergy.control.ManoObraHome;
import com.pmenergy.control.MaterialHome;
import com.pmenergy.model.Item;
import com.pmenergy.model.ManoObra;
import com.pmenergy.model.Material;
 



@ManagedBean
@ApplicationScoped

public class ItemServiceBean {

	@EJB ItemHome itemHome; 
    private List<Item> itemList;
    
    @PostConstruct
    public void init() {
        this.itemList=itemHome.findAllItems();
    }
     
    public List<Item> getItemList() {
        return itemList;
    }
    
}


